<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:include="/common/_container :: htmlhead"></head>
<body>
	<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>二维码</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
                            <div class="col-sm-3">
                            	<div class="input-group">
								    <div class="input-group-btn" >
								        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle "  type="button">二维码编号
								        </button>
								    </div>
								    <input type="text" class="form-control" id="codeNum" placeholder="请输入二维码编号" />
								</div>
                            </div>
                            <div class="col-sm-3">
                            	<div class="input-group">
								    <div class="input-group-btn">
								        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">
								           	 二维码类型
								        </button>
								    </div>
								    <select class="form-control" id="codeType">
								        <option value="">---请选择----</option>
								        <option th:each="code,iterStat:${codes}" th:value="${code.key}" th:text="${code.value}" ></option>
								    </select>
								</div>
                            </div>
                            <div class="col-sm-3">
                            	<div class="input-group">
								    <div class="input-group-btn">
								        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">
								           	 二维码状态
								        </button>
								    </div>
								    <select class="form-control" id="status">
								        <option value = "">---请选择----</option>
								        <option value="1">已创建</option>
								        <option value="2">已打印</option>								     
								    </select>
								</div>
                            </div>
                            <div class="col-sm-3">
	                            <button type="button" class="btn btn-primary" onclick="QRCode.search()" >
								    <i class="fa fa-search"></i>&nbsp;搜索
								</button>
	                            <button type="button" class="btn btn-primary button-margin" onclick="QRCode.resetSearch()" >
								    <i class="fa fa-trash"></i>&nbsp;重置
								</button>                              
                            </div>
                        </div>
                        <div class="hidden-xs" id="QRCodeTableToolbar" role="group">
							 
							
							<shiro:hasPermission name="qrcode_add">
                           		 <button type="button" class="btn btn-primary" onclick="QRCode.openAddQRCodes()" >
								 <i class="fa fa-plus"></i>&nbsp;新增
							</button>
							</shiro:hasPermission>
							<shiro:hasPermission name="qrcode_print">
								 <button type="button" class="btn btn-primary " onclick="QRCode.openQRCodePrint()" >
								    <i class="fa fa-bars"></i>&nbsp;打印
								 </button>
							</shiro:hasPermission>
							<shiro:hasPermission name="qrcode_view">
								<button type="button" class="btn btn-primary" onclick="QRCode.openCodeView()" >
								 <i class="fa fa-plus"></i>&nbsp;查看二维码
								</button>
							</shiro:hasPermission>
							<shiro:hasPermission name="qrcode_word">
								<button type="button" class="btn btn-primary" onclick="word()" >
								 <i class="fa fa-plus"></i>&nbsp;WORD打印
								</button>
							</shiro:hasPermission>
							<shiro:hasPermission name="qrcode_word2">
								<button type="button" class="btn btn-primary" onclick="word2()" >
								 <i class="fa fa-plus"></i>&nbsp;WORD打印2
								</button>
							</shiro:hasPermission>
							<shiro:hasPermission name="qrcode_del1">
                                <button type="button" class="btn btn-primary button-margin" onclick="QRCode.delete()" >
								    <i class="fa fa-remove"></i>&nbsp;删除
								</button>
							</shiro:hasPermission>
                        </div>
                        <table id="QRCodeTable" data-mobile-responsive="true" data-click-to-select="true">
						    <thead>
						        <tr>
						            <th data-field="selectItem" data-checkbox="true"></th>
						        </tr>
						    </thead>
						</table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script th:src="@{/static/modular/base/qrcode/list.js}"></script>
</body>
<script type="text/javascript">
function word(){
	location=Feng.ctxPath + "/base/qrcode/download";
}
function word2(){
	location=Feng.ctxPath + "/base/qrcode/download2";
}
</script>
</html>


